import { } from 'pinia'

export interface stateValue {
  name: null | string | number;
  email: string | null;
  token: string | null;
}

export declare type stateConfig = () => stateValue;

export interface actionsConfig {
  updateUserInfo: <T>(this: any, T) => void;
  login: (this: any, email: string, password: string) => void;
}

export interface userPropsConfig {
  state: stateConfig;
  id: string | 'user';
  actions: actionsConfig;
}

